package level 
{
	import enemy.Enemy;
	import enemy.GraveRobber;
	import item.Item;
	import item.Interaction;
	import item.Trapdoor;
	import item.Treasure;
	import org.flixel.*;
	import Registry;
	/**
	 * ...
	 * @author Chris Gamble
	 */
	public class EnemyTest extends GameState
	{
		private var player:Player;
		public override function create():void 
		{
			FlxG.bgColor = 0xffaaaaaa;
			Registry.maze.load(StaticMaze.random_0);
			add(Registry.maze);
			
			var treasure:Treasure = new Treasure(25, 25);
			var treasure2:Treasure = new Treasure(25, 425);
			var treasure3:Treasure = new Treasure(475, 375);
			var treasure4:Treasure = new Treasure(475, 475);
			Registry.mapTreasures.add(treasure);
			Registry.mapTreasures.add(treasure2);
			Registry.mapTreasures.add(treasure3);
			Registry.mapTreasures.add(treasure4);
			add(Registry.mapTreasures);
			
			var robber:GraveRobber = new GraveRobber(false, 425, 475);
			//var path:FlxPath = new FlxPath();
			//path.add(425, 475);
			//robber.followPath(path, 100, FlxObject.PATH_FORWARD);
			Registry.enemies.add(robber);
			robber = new GraveRobber(false, 425, 350);
			Registry.enemies.add(robber);
			add(Registry.enemies);
			
			var trapdoor:Trapdoor = new Trapdoor(375, 325);
			Registry.items.add(trapdoor);
			add(Registry.items);
			
			Registry.player = new Player(300, 325);
			add(Registry.player);
		}
		
	}
}